RESTful Web APIs by Leonard Richardson Mike Amundsen and Sam Ruby
Author:Leonard Richardson, Mike Amundsen, and Sam Ruby
Language: eng
Format: epub
Tags: COMPUTERS / Web / Web Programming
ISBN: 9781449358051
Publisher: O’Reilly Media
Published: 2013-09-12T00:00:00+00:00
Versoning isnât special
API versioning gets a lot of attention because the problem is a lot worse for an API that ignores the hypermedia constraint. But itâs just one example of the general problem addressed by hypermedia. How does the client know which resource has the representation it wants? Once the client gets a representation, how is it supposed to know what the representation means? The techniques I gave earlier are the techniques a server uses in general when giving the client a choice between representations.
A server can give out links to two different URLs, and the client can choose which link to follow based on an understanding of the application semantics. Itâs the same whether the two URLs point to completely different resources, or to the v1 and v2 versions of a single underlying resource.
A single resource may have representations in different media types. The client can select the representation it wants using content negotiation (with the Accept header; see Chapter 11) or hypermedia. Itâs the same whether the media types are completely different (Collection+JSON and HTML), or whether they differ only by a version parameter. I think the version parameter is a bad idea, but if you use it, itâll work the same way as if you used two completely different media types.
A single resource may be described by many different profiles, and the client can use content negotiation or hypermedia to select the one it wants. Itâs the same whether the profiles are different approaches to the same idea (hCard versus schema.orgâs Person) or whether theyâre the âv1â and âv2â profiles of a single API.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Content Management | Programming |
User Experience & Usability | User Generated Content |
Web Design | Web Marketing |
Web Services | Website Analytics |
Hello! Python by Anthony Briggs(9397)
The Mikado Method by Ola Ellnestam Daniel Brolund(9325)
Dependency Injection in .NET by Mark Seemann(8873)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7414)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7137)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6258)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5975)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5521)
Kotlin in Action by Dmitry Jemerov(4660)
Audition by Ryu Murakami(4112)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(3927)
Functional Programming in JavaScript by Mantyla Dan(3729)
Svelte with Test-Driven Development by Daniel Irvine(3106)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2849)
Layered Design for Ruby on Rails Applications by Dementyev Vladimir;(2726)
Test-Driven Development with PHP 8 by Rainier Sarabia(2706)
WordPress Plugin Development Cookbook by Yannick Lefebvre(2630)
Architecting Modern Java EE Applications: Designing lightweight, business-oriented enterprise applications in the age of cloud, containers, and Java EE 8 by Daschner Sebastian(2566)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2346)